<h{{ .Level }} id="{{ .Anchor }}" {{- with .Attributes.class }} class="{{ . }}" {{- end }}>
  {{ .Text }}
  {{ if default true .Page.Params.bookHeadingAnchor }}
  <a class="anchor" href="#{{ .Anchor }}">#</a>
  {{ end }}
</h{{ .Level }}>
